﻿using LoveEatRabbit.ErrorCode;
using MediatR;

namespace LoveEatRabbit.API.Write.Applications.Commands.Roles
{
    /// <summary>
    /// 角色权限修改请求命令
    /// </summary>
    public class UpdateRoleCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool States { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 角色编号
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 权限编号
        /// </summary>
        public List<int> PermissionId { get; set; }
    }
}
